home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
U-User Group
/
(k)u9.d64
/
min'max.func
< prev
next >
Wrap
Text File
|
2007-02-28
|
284b
|
16 lines
9000 //
9010 // RETURNS MAXIMUM OF TWO NUMBERS
9020 //
9030 FUNC MAX(A,B) CLOSED
9040 IF A>B THEN RETURN A
9050 RETURN B
9060 ENDFUNC MAX
9070 //
9080 // RETURNS MINIMUM OF TWO NUMBERS
9090 //
9100 FUNC MIN(A,B) CLOSED
9110 IF A>B THEN RETURN B
9120 RETURN A
9130 ENDFUNC MIN
9140 //